Give this code a chance to work
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jun 2011 01:44:12 +0000 (21:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jun 2011 01:44:12 +0000 (21:44 -0400)
At least it does not get uninitialized variable warnings now.

gtk/gtktextview.c

index be0393bde6ab0255bd4bbb93d7dcdef8646d0bb6..dc9addc478ac081ad019a83caaada947ae309b8c 100644 (file)
@@ -7518,6 +7518,8 @@ adjust_allocation_recurse (GtkWidget *widget,
    * into widget->allocation if the widget is not realized.
    * FIXME someone figure out why this was.
    */
+  gtk_widget_get_allocation (widget, &allocation);
+
   if (!gtk_widget_get_realized (widget))
     {
       if (gtk_widget_get_visible (widget))
@@ -7564,7 +7566,7 @@ adjust_allocation (GtkWidget *widget,
   
   adjust_allocation_recurse (widget, &scroll_data);
 }
-            
+
 static void
 gtk_text_view_value_changed (GtkAdjustment *adjustment,
                              GtkTextView   *text_view)